/**
 * 商品管理路由
 */
export default [
  {
    path: '/products',
    meta: { requiresAuth: true },
    children: [
      {
        path: '',
        name: 'ProductsIndex',
        component: () => import('@/views/products/Index.vue'),
        meta: { title: '商品管理首页' }
      },
      {
        path: 'dashboard',
        name: 'ProductsDashboard',
        component: () => import('@/views/products/Dashboard.vue'),
        meta: { title: '商品数据看板' }
      },
      {
        path: 'list',
        name: 'ProductsList',
        component: () => import('@/views/products/ProductsList.vue'),
        meta: { title: '商品列表' }
      },
      {
        path: 'add',
        name: 'ProductAdd',
        component: () => import('@/views/products/ProductAdd.vue'),
        meta: { title: '新增商品' }
      },
      {
        path: 'detail/:id',
        name: 'ProductDetail',
        component: () => import('@/views/products/Detail.vue'),
        meta: { title: '商品详情' }
      },
      {
        path: 'categories',
        name: 'ProductCategories',
        component: () => import('@/views/products/Categories.vue'),
        meta: { title: '商品分类' }
      },
      {
        path: 'brands',
        name: 'ProductBrands',
        component: () => import('@/views/products/Brands.vue'),
        meta: { title: '品牌管理' }
      },
      {
        path: 'units',
        name: 'ProductUnits',
        component: () => import('@/views/products/Units.vue'),
        meta: { title: '单位管理' }
      },
      {
        path: 'unit-conversion',
        name: 'ProductUnitConversion',
        component: () => import('@/views/products/UnitConversion.vue'),
        meta: { title: '单位换算' }
      },
      {
        path: 'attributes',
        name: 'ProductAttributes',
        component: () => import('@/views/products/Attributes.vue'),
        meta: { title: '商品属性' }
      },
      {
        path: 'tags',
        name: 'ProductTags',
        component: () => import('@/views/products/Tags.vue'),
        meta: { title: '商品标签' }
      },
      {
        path: 'pricing',
        name: 'ProductPricing',
        component: () => import('@/views/products/Pricing.vue'),
        meta: { title: '价格管理' }
      },
      {
        path: 'codes',
        name: 'ProductCodes',
        component: () => import('@/views/products/Codes.vue'),
        meta: { title: '编码管理' }
      },
      {
        path: 'packaging',
        name: 'ProductPackaging',
        component: () => import('@/views/products/Packaging.vue'),
        meta: { title: '包装规格' }
      },
      {
        path: 'sku',
        name: 'ProductSKU',
        component: () => import('@/views/products/SKU.vue'),
        meta: { title: 'SKU管理' }
      },
      {
        path: 'import',
        name: 'ProductsImport',
        component: () => import('@/views/products/Import.vue'),
        meta: { title: '商品导入' }
      },
      {
        path: 'export',
        name: 'ProductsExport',
        component: () => import('@/views/products/Export.vue'),
        meta: { title: '商品导出' }
      },
      {
        path: 'batch-edit',
        name: 'ProductsBatchEdit',
        component: () => import('@/views/products/BatchEdit.vue'),
        meta: { title: '批量编辑' }
      }
    ]
  }
]

